//引用初始化样式表
@import "common";
// 头部样式
body {
    background-color: #f7f7f7;
    min-width: 320px;
    max-width: 750px;
    margin: 0px auto;
}
// 设置搜索部分的样式
@baseFont: 50;
.search-content {
    display: flex;
    position: fixed;
    justify-content: space-between;
	background-color: #FFC001;
	width: 15rem;
    height: 88rem / @baseFont;
    top: 0px;
    .classify {
        width: 44rem / @baseFont;
        height: 70rem / @baseFont;
        background: url("../images/classify.png") no-repeat;
        background-size: 44rem / @baseFont 70rem / @baseFont;
        margin: 9rem / @baseFont 25rem / @baseFont 0rem 10rem / @baseFont;
    }
}
.search {
    flex:1;
    input {
        width: 100%;
        border: 0;
        height: 66rem / @baseFont;
        line-height: 66rem / @baseFont;
        background-color: #fff2cc;
        border-radius: 33rem / @baseFont;
        color: #757575;
        font-size: 25rem / @baseFont;
        padding-left: 55rem / @baseFont;
        outline: none;
    }
}
.login {
    width: 75rem / @baseFont;
    height: 70rem / @baseFont;
    line-height: 70rem / @baseFont;
    text-align: center;
    font-size: 25rem / @baseFont;
    color: #fff;
    margin: 10rem / @baseFont;
}
// 双十一海报和广告
.double11 {
    margin-top: 88rem / @baseFont;
}
.double11-banner > a > img {
    width: 750rem / @baseFont;
}
.double11-adbanner {
    margin-top: -13rem / @baseFont;
    display: flex;
    img {
        display: block;
        width: 750rem / 3 / @baseFont;
    }
}
// 导航栏10个
.nav {
    ul {
        display: flex;
        flex-wrap: wrap;
    }
    li {
        width: 750rem / 5 / @baseFont;
    }
    .nav-pic > img {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 15rem / @baseFont
    }
    .nav-text > p {
        display: inline-block;
        width: 100%;
        text-align: center;
        vertical-align: text-top;
        font-size: 25rem / @baseFont;
    }
}
// 红包部分
.redbag {
    ul {
        display: flex;
    }
    .redbag1 > a > img {
        width: 750rem / 2 / @baseFont;
    }
    .redbag2 > a > img  {
        width:  750rem / 4 / @baseFont;
    }
}
// 低价活动部分
.activity {
    ul {        
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    li {
        box-sizing: border-box;
        padding: 10rem / @baseFont;
        width: 325rem / @baseFont;
        background-color: #ffffff;
    }
    .act-pic {
        display: flex;
    }
    li img {
        width: 100%;
    }
    li:nth-child(1) {
        border-top-left-radius: 10rem / @baseFont;
    }
    li:nth-child(2) {
        border-top-right-radius: 10rem / @baseFont;
    }
    li:nth-child(3) {
        border-bottom-left-radius: 10rem / @baseFont;
    }
    li:nth-child(4) {
        border-bottom-right-radius: 10rem / @baseFont;
    }
    // 标题和描述
    li h1 {
        font-size: 45rem / @baseFont;    
    }
    li > a > p {
        font-size:  30rem / @baseFont;
        color: #cacaca;
    }
    // 价格
    .act-price {
        display: flex;
    }
    .act-price div {
        width: 50%;
    }
    .act-price p {
        font-size: 30rem / @baseFont;
        color: #ff5601;
        text-align: center;
    }
    // 品牌名字
    .act-bottom {
        display: flex;
        justify-content: space-around;
    }
    .act-text {
        position: relative;
        top: -50rem / @baseFont;
        width: 150rem / @baseFont;
        height: 54rem / @baseFont;
        background: url("../upload/act-bg.png") no-repeat;
        background-size: 150rem / @baseFont;
    }
    .act-text p {
        margin-top: 30rem / @baseFont;
        text-align: center;
        font-size: 20rem / @baseFont;
    }
}
// 猜你喜欢部分
.love > img {
    width: 100%;
    margin-top: 15rem / @baseFont;
}
.love {
    ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    li {
        width: 295rem / @baseFont;
        box-sizing: border-box;
        margin: 15rem / @baseFont;
        padding: 10rem / @baseFont;
        background-color: #ffffff;
        border-radius: 10rem / @baseFont;
    } 
    li a > img {
        width: 100%;
    }
    li h1 {
        margin: 10rem / @baseFont;
        font-size: 25rem / @baseFont;
    }
    // 标签
    li div:nth-of-type(1) {
        margin: 10rem / @baseFont;
        display: flex;
    }
    li span {
        display: block;
        width: 50rem / @baseFont;
        height: 30rem / @baseFont;
        font-size: 20rem / @baseFont;
        box-sizing: border-box;
        border: 1rem / @baseFont solid #ffbb00;
        text-align: center;
        margin-right: 10rem / @baseFont;
        border-radius: 7rem / @baseFont;
    }
    li .ziying {
        background-color: #ffbb00;
    }
    // 价格+评论
    li div:nth-of-type(2) {
        display: flex;
        vertical-align: middle;
        margin: 10rem / @baseFont;
    }
    li div:nth-of-type(2) h4 {
        color: #ff4e2e;
        font-size: 30rem / @baseFont;
    }
    li div:nth-of-type(2) p {
        margin-left: 15rem / @baseFont;
        margin-top: 7rem / @baseFont;
        color: #868686;
        font-size: 25rem / @baseFont;
    }
}
// 底部样式
.bottom {
    ul {
        display: flex;
        justify-content: center;
        background-color: #fff;
    }
    ul li {
        flex: 1;
    }
    a > img {
        display: block;
        margin: 0 auto;
        width: 40rem / @baseFont;
    }
    a > p {
        text-align: center;
        font-size: 20rem / @baseFont;
    }
}
